import Vue from 'vue'
import Vuex from 'vuex'
import getters from './getters'
import app from './modules/app'
import settings from './modules/settings'
import user from './modules/user'
import tagsView from './modules/tagsView'
import permission from './modules/permission'
import customer from './modules/customer'
import garage from './modules/garage'
import video from './modules/video'
import introduce from './modules/introduce'
import vehicle from './modules/vehicle'
import customerManage from './modules/customerManage'
import order from './modules/order'
import type from './modules/type'
import role from './modules/role'
import account from './modules/account'
import parameter from './modules/parameter'

Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    app,
    settings,
    user,
    tagsView,
    permission,
    customer,
    garage,
    video,
    introduce,
    vehicle,
    customerManage,
    order,
    type,
    role,
    account,
    parameter
  },
  getters
})

export default store
